#ifndef SEVER_H
#define SEVER_H
#include "common.h"

#define CERTF   "CAcertifity/server.crt" 
#define KEYF   "CAcertifity/server.key"  
#define CACERT "CAcertifity/cacert.crt" 
#define PORT   4422   

SSL_CTX* ctx;  
int password_callback(char *buf,int size,int rwflag,void * userdata);
int verify_callbackf(int n,X509_STORE_CTX * x);
SSL* SSL_set_sd(int sd);
int verify_certificate(SSL * ssl);
int tcp_accept(int listen_sd);
void ssl_read_write(SSL *ssl,int sd);
void *ssl_ser_cli_thread(void *arg);

 
#endif
